getFirstMatch

@Nullable
open fun getFirstMatch(supportedLocales: @NonNull Array<String>): @Nullable Locale(source)

Returns the first match in the locale list given an unordered array of supported locales in BCP 47 format.

Return

The first Locale from this list that appears in the given array, or null if the LocaleListCompat is empty.